package com.robotserver.orders.service;

import com.robotserver.orders.entity.AlimmTokens;
import com.robotserver.orders.vo.TbkOrderTimeVO;
import com.taobao.api.TaobaoClient;
import com.taobao.api.response.TbkScOrderDetailsGetResponse;

import java.util.List;

/**
 * @Auther: liuqi
 * @Date: 2021/4/8 11:14
 * @Description: 淘宝订单同步
 */
public interface TbOrderSyncService {

    void syncAlimmUnitOrder(List<TbkOrderTimeVO> tbkOrderTimeVOList, AlimmTokens alimmTokens, TaobaoClient client, Long orderScene);
    void syncTimeUnitOrder(TbkOrderTimeVO tbkOrderTime, AlimmTokens alimmTokens, TaobaoClient client, String positionindex, Long pageNo, Long orderScene);
    void ordersAdd(List<TbkScOrderDetailsGetResponse.PublisherOrderDto> orders, AlimmTokens alimmTokens);
    void threadSyncOrder(List<TbkOrderTimeVO> tbkOrderTimeVOList, List<AlimmTokens> alimmTokens, TaobaoClient client, String lockName, Long orderScene);
    void threadLockSyncOrder(List<TbkOrderTimeVO> tbkOrderTimeVOList, List<AlimmTokens> alimmTokens, TaobaoClient client, String lockName, Long orderScene);
    //modify by liuqi on 2021-03-11 10：34
    void threadSyncOrder_consumer(List<TbkOrderTimeVO> tbkOrderTimeVOList, AlimmTokens alimmTokens, TaobaoClient client, Long orderScene);
}
